//
//  RNOLAddAddressViewController.m
//  RongNiuOnline
//
//  Created by apple on 2018/5/2.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import "RNOLAddAddressViewController.h"
#import "RNOLAddRegionView.h"

@interface RNOLAddAddressViewController ()

@end

@implementation RNOLAddAddressViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = kBgColor;
    [self setupNavBarTitleViewWithText:@"添加地址"];
    [self setupNavBarRightButtonWithTitle:@"保存"];
    [self setup];
}

- (void)setup{
    RNOLAddRegionView *addRegionView  = [RNOLAddRegionView FromXIB];
    addRegionView.frame = CGRectMake(0, 15, KWIDTH , KHIGHT - 15);
    [self.view addSubview: addRegionView];
}

#pragma mark- 保存地址
- (void)navRightAction:(UIButton *)button{
    [self showSuccessMessageWithText:@"保存成功!"];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [self.navigationController popViewControllerAnimated:YES];
    });
}


@end
